<?php
class ControllerJournal2Assets extends Controller {

    public function css() {
        $this->data['selectors'] = $this->journal2->css_settings;

        $this->template = 'journal2/template/journal2/assets/css.tpl';
        $this->response->addHeader('Content-type: text/css');
//        $this->response->addHeader('Pragma: public');
//        $this->response->addHeader('Cache-Control: max-age=2592000');
//        $this->response->addHeader('Expires: '. gmdate('D, d M Y H:i:s \G\M\T', time() + 2592000));
        $this->response->setOutput($this->render());
    }

    public function js() {
        $this->template = 'journal2/template/journal2/assets/js.tpl';
        $this->response->addHeader('Content-type: application/javascript');
//        $this->response->addHeader('Pragma: public');
//        $this->response->addHeader('Cache-Control: max-age=2592000');
//        $this->response->addHeader('Expires: '. gmdate('D, d M Y H:i:s \G\M\T', time() + 2592000));
        $this->response->setOutput($this->render());
    }

}
